package com.improve.frame.common.bean;

import com.sun.istack.internal.NotNull;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.Valid;

/**
 * @Description 请求数据
 * @Author wzxing918
 * @Date 2021-03-31
 * @Version 1.0.0
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "RequestData")
public class RequestData<T> {

    /**
     * 返回的数据
     */
    @ApiModelProperty(value = "请求数据对象", name = "data")
    @Valid
    @NotNull
    private T data;
}